GCCFLAG := -I/usr/local/lib/erlang/usr/include -fpic -shared
all:
	gcc $(GCCFLAG) -o libmydriver.so mydriver.c
	erlc -o mydriver.beam mydriver.erl
clean:
	rm -rvf libmydriver.so
	rm -rvf mydriver.beam
	rm -rvf *~